import request from '@/utils/request'

// 获取位置信息
export function address(data) {
  return request({
    url: '/assets/asset/common/getProvincesByGaoDe',
    method: 'get',
    params: data
  })
}

// 省
export function addressProvinces(data) {
  return request({
    url: '/assets/asset/common/getProvinces',
    method: 'get',
    params: data
  })
}

// 市
export function addressCity(data) {
  return request({
    url: '/assets/asset/common/getCity',
    method: 'get',
    params: data
  })
}

// 区
export function addressRegion(data) {
  return request({
    url: '/assets/asset/common/getRegion',
    method: 'get',
    params: data
  })
}

// 根据code码获取信息
export function addressCodee(data) {
  return request({
    url: '/assets/asset/common/getDistrictByRegionCode',
    method: 'get',
    params: data
  })
}
